﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sundry.Model
{
    /// <summary>
    /// 管理员菜单列表
    /// </summary>
    public class AdminMenu
    {
        /// <summary>
        /// 管理员菜单Id
        /// </summary>
        [Key]
        public int AdminMenuId { get; set; }
        /// <summary>
        /// 所属父级菜单Id
        /// </summary>
        public int ParentMenuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 菜单路径
        /// </summary>
        public string MenuActionUrl { get; set; }
        /// <summary>
        /// 是否显示
        /// </summary>
        public int IsShow { get; set; }
        /// <summary>
        /// 是否属于管理员菜单
        /// </summary>
        public int IsAdmin { get; set; }
        /// <summary>
        /// 是否属于店铺菜单
        /// </summary>
        public int IsStoreAdmin { get; set; }
        /// <summary>
        /// 管理员排序数字
        /// </summary>
        public int AdminOrderNum { get; set; }
        /// <summary>
        /// 店铺排序数字
        /// </summary>
        public int StoreOrderNum { get; set; }
        /// <summary>
        /// 菜单所属等级（从高到低依次为0,1,2,3...）
        /// </summary>
        public int MenuLevel { get; set; }
        /// <summary>
        /// Icon图标
        /// </summary>
        [StringLength(70)]
        public string Icon { get; set; }
    }
}
